package com.company.observer.mode;


/**
 * @Author : hxma@easipass.com
 * @Date : 2021/5/10
 **/
public class Lottery {

    public String lotteryResult(String number){
        if (Math.abs(number.hashCode())% 2 == 0){
            return "恭喜你！！！".concat("的摇号号码为 : ").concat(number).concat("结果为：摇中了!!!");
        }else {
            return "很遗憾！！！".concat("的摇号号码为 : ").concat(number).concat("结果为：没中");
        }
    }
}
